package com.ruoyi.util.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.util.service.DeepSeekService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/deepseek")
public class DeepSeekController extends BaseController {

    @Autowired
    private DeepSeekService deepSeekService;

    @PostMapping("/chat")
    public String chat(@RequestParam String message) {
        return deepSeekService.callDeepSeek(message);
    }
}

